home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Leser 19
/
Amiga Plus Leser CD 19.iso
/
Online
/
anubis-3.6.0
/
scripts
/
debian.init
next >
Wrap
Text File
|
2002-11-17
|
860b
|
44 lines
#!/bin/sh
#
# DEBIAN:
# To start GNU Anubis as a system service, copy this file to
# /etc/init.d/anubis and run the "update-rc.d anubis defaults".
# To remove the service, delete the /etc/init.d/anubis
# and run the "update-rc.d anubis remove".
#
DAEMON="anubis"
set -e
test -f $DAEMON || exit 0
case "$1" in
start)
echo -n "Starting the Anubis: "
if start-stop-daemon --start --quiet --exec $DAEMON
then
echo "succeeded."
else
echo "anubis already running."
fi
;;
stop)
echo -n "Stopping the Anubis: "
start-stop-daemon --stop --quiet --exec $DAEMON
echo "succeeded."
;;
force-reload|restart)
echo -n "Restarting the Anubis: "
start-stop-daemon --stop --quiet --exec $DAEMON
start-stop-daemon --start --quiet --exec $DAEMON
echo "succeeded."
;;
*)
echo "Usage: /etc/init.d/anubis {start|stop|restart}"
exit 1
;;
esac
exit 0